#ifndef NODE_H
#define NODE_H

#include "../Scanner-Automat/Token.h"
#include "List.h"

enum nodeType {
	PROG,
	DECL,
	DECLS,
	ARRAY,
	STATEMENTS,
	STATEMENT,
	EXP,
	EXP2,
	INDEX,
	OP_EXP,
	OP,
	TERM
};

class Node {
public:
	Node(nodeType nt, Token* t);
	virtual ~Node();

	virtual void addNode(Node* n);

private:
	List childList;
	nodeType NT;
	Token* token;
};

#endif
